/**
 * class is having composite key
 */
package com.rst.org.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author JavaDeamon
 *
 */
@Entity
@Table(name="LOCATION_DEPARTMENT_MAPPING")
public class LocationDepartmentMappingDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 255091539314332376L;
	private Integer locId;
	private Integer departmentId;
	
	/**
	 * @return the locId
	 * contains location id from location details dto
	 * primary key
	 * length is 10
	 */
	@Id
	@Column(name="LOCATION_ID", length=10)
	public Integer getLocId() {
		return locId;
	}
	/**
	 * @return the departmentId
	 * contains deptt id from department details table
	 * primary key
	 * length is 10
	 */
	@Id
	@Column(name="DEPARTMENT_ID", length=10)
	public Integer getDepartmentId() {
		return departmentId;
	}
	/**
	 * @param locId the locId to set
	 */
	public void setLocId(Integer locId) {
		this.locId = locId;
	}
	/**
	 * @param departmentId the departmentId to set
	 */
	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}
}
